#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;
int GetAscii(char L)
{
	return (int)L;
}
int main()
{
	char L;
	cin >> L;
	cout << GetAscii(L) << endl;
}